package com.aoxon.cargo.service;

import java.util.HashMap;

import com.aoxon.cargo.bean.GsonBean;
import com.aoxon.cargo.bean.Supplier;
import com.aoxon.cargo.cache.keyCache;
import com.google.gson.Gson;

/**
 * 修改商家店铺信息的服务
 * @author ZZJ
 *
 */
public class RevampStoreService extends MyService {

	/**
	 * 提交修改店铺信息
	 * 
	 * @param supplier
	 * @return
	 */
	public GsonBean execute(Supplier supplier) {

		url = "updateSupplierInfor" + suffix;;

		params = new HashMap<String, String>();
		params.put("supId", String.valueOf(keyCache.supId));
		params.put("key", keyCache.key);
		params.put("supplierInfor", new Gson().toJson(supplier));

		return doPost();

	}
	
}
